gtk4.git
5 years agofontbutton: Convert docs
Matthias Clasen [Mon, 22 Feb 2021 00:42:45 +0000 (19:42 -0500)]
fontbutton: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agocolorbutton: Convert docs
Matthias Clasen [Mon, 22 Feb 2021 00:42:17 +0000 (19:42 -0500)]
colorbutton: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agodropdown: Convert docs
Matthias Clasen [Mon, 22 Feb 2021 00:41:58 +0000 (19:41 -0500)]
dropdown: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoappchooserbutton: Convert docs
Matthias Clasen [Mon, 22 Feb 2021 00:41:33 +0000 (19:41 -0500)]
appchooserbutton: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agolockbutton: Convert docs
Matthias Clasen [Sun, 21 Feb 2021 22:21:24 +0000 (17:21 -0500)]
lockbutton: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agocomboboxtext: Convert docs
Matthias Clasen [Sun, 21 Feb 2021 22:21:00 +0000 (17:21 -0500)]
comboboxtext: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agocombobox: Convert docs
Matthias Clasen [Sun, 21 Feb 2021 22:20:23 +0000 (17:20 -0500)]
combobox: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agodocs: Remove duplicate documentation stanzas
Emmanuele Bassi [Mon, 22 Feb 2021 00:12:17 +0000 (00:12 +0000)]
docs: Remove duplicate documentation stanzas

5 years agodocs: Fix typos
Emmanuele Bassi [Mon, 22 Feb 2021 00:11:52 +0000 (00:11 +0000)]
docs: Fix typos

5 years agodocs: Fix value annotation
Emmanuele Bassi [Mon, 22 Feb 2021 00:10:56 +0000 (00:10 +0000)]
docs: Fix value annotation

Drop the `:`.

5 years agodocs: Fix copy-paste error in GdkDevice
Emmanuele Bassi [Mon, 22 Feb 2021 00:10:35 +0000 (00:10 +0000)]
docs: Fix copy-paste error in GdkDevice

5 years agodocs: Fix the MenuButton direction property links
Emmanuele Bassi [Mon, 22 Feb 2021 00:09:57 +0000 (00:09 +0000)]
docs: Fix the MenuButton direction property links

5 years agomenubutton: Convert docs
Matthias Clasen [Sun, 21 Feb 2021 18:51:04 +0000 (13:51 -0500)]
menubutton: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agocheckbutton: Convert docs
Matthias Clasen [Sun, 21 Feb 2021 18:15:39 +0000 (13:15 -0500)]
checkbutton: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agodocs: Split images for check and radio buttons
Matthias Clasen [Sun, 21 Feb 2021 18:02:08 +0000 (13:02 -0500)]
docs: Split images for check and radio buttons

Its the same widget, but two images fit better in the gallery,
and will be easier to use as example images in the docs.

5 years agolinkbutton: Convert docs
Matthias Clasen [Sun, 21 Feb 2021 17:53:26 +0000 (12:53 -0500)]
linkbutton: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agodocs: Improve the togglebutton image
Matthias Clasen [Sun, 21 Feb 2021 17:44:28 +0000 (12:44 -0500)]
docs: Improve the togglebutton image

Make it actually show toggles.

5 years agowayland: Fix a link
Matthias Clasen [Sun, 21 Feb 2021 17:39:28 +0000 (12:39 -0500)]
wayland: Fix a link

gi-docgen currently can't handle links without namespace
in the Wayland docs.

5 years agotogglebutton: Convert docs
Matthias Clasen [Sun, 21 Feb 2021 16:16:19 +0000 (11:16 -0500)]
togglebutton: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agobutton: Convert docs
Matthias Clasen [Sun, 21 Feb 2021 16:04:58 +0000 (11:04 -0500)]
button: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agodocs: Fix the annotation for GtkTextView:justification
Emmanuele Bassi [Sun, 21 Feb 2021 01:15:49 +0000 (01:15 +0000)]
docs: Fix the annotation for GtkTextView:justification

5 years agodocs: Fix up the 3-to-4 migration guide
Emmanuele Bassi [Sun, 21 Feb 2021 01:08:52 +0000 (01:08 +0000)]
docs: Fix up the 3-to-4 migration guide

5 years agodocs: Add backend links to the gdk docs
Matthias Clasen [Sun, 21 Feb 2021 15:39:26 +0000 (10:39 -0500)]
docs: Add backend links to the gdk docs

These are placeholders for when we know how to
link across namespaces.

5 years agodocs: Add separate toml files for gdk backends
Matthias Clasen [Sun, 21 Feb 2021 15:38:39 +0000 (10:38 -0500)]
docs: Add separate toml files for gdk backends

Reusing the same one duplicates the standalone
docs, which doesn't quite seem right.

5 years agodocs: Brush up the Wayland backend docs
Matthias Clasen [Sun, 21 Feb 2021 15:40:24 +0000 (10:40 -0500)]
docs: Brush up the Wayland backend docs

Add some content here.

5 years agogdk: Some more tweaks of the docs
Matthias Clasen [Sun, 21 Feb 2021 14:19:37 +0000 (09:19 -0500)]
gdk: Some more tweaks of the docs

5 years agodocs: Add some links to the pango chapter
Matthias Clasen [Sun, 21 Feb 2021 14:18:24 +0000 (09:18 -0500)]
docs: Add some links to the pango chapter

5 years agodocs: Rework the gdk docs
Matthias Clasen [Sun, 21 Feb 2021 05:13:57 +0000 (00:13 -0500)]
docs: Rework the gdk docs

Convert links, make things more concise.

5 years agodocs: Move GdkEvent docs inline
Matthias Clasen [Sat, 20 Feb 2021 15:26:17 +0000 (10:26 -0500)]
docs: Move GdkEvent docs inline

This is not really worth a chapter of its own.

5 years agodocs: Improve gsk docs
Matthias Clasen [Sat, 20 Feb 2021 06:09:55 +0000 (01:09 -0500)]
docs: Improve gsk docs

Convert link formats, add summaries, and make
a few missing things show up in the docs.

5 years agodocs: Tweak X11 section
Matthias Clasen [Sat, 20 Feb 2021 05:21:42 +0000 (00:21 -0500)]
docs: Tweak X11 section

Remove unsupported heading anchors.

5 years agodocs: Tweaks Windows section
Matthias Clasen [Sat, 20 Feb 2021 05:21:21 +0000 (00:21 -0500)]
docs: Tweaks Windows section

Remove unsupported heading anchors.

5 years agodocs: Tweak Wayland section
Matthias Clasen [Sat, 20 Feb 2021 05:20:46 +0000 (00:20 -0500)]
docs: Tweak Wayland section

Remove unsupported heading anchors.

5 years agodocs: Tweak a11y section
Matthias Clasen [Sat, 20 Feb 2021 05:20:23 +0000 (00:20 -0500)]
docs: Tweak a11y section

Convert link syntax.

5 years agodocs: Tweak running chapter
Matthias Clasen [Sat, 20 Feb 2021 05:19:51 +0000 (00:19 -0500)]
docs: Tweak running chapter

Remove unsupported heading anchors, fix definition
list use.

5 years agodocs: Tweak input overview
Matthias Clasen [Sat, 20 Feb 2021 05:19:23 +0000 (00:19 -0500)]
docs: Tweak input overview

Remove unsupported heading anchors.

5 years agodocs: Tweak drawing model overview
Matthias Clasen [Sat, 20 Feb 2021 05:18:49 +0000 (00:18 -0500)]
docs: Tweak drawing model overview

Fix link syntax, remove gtk-doc markup.

5 years agodocs: Tweak css properties section
Matthias Clasen [Sat, 20 Feb 2021 05:18:21 +0000 (00:18 -0500)]
docs: Tweak css properties section

Fix the use of definition lists.

5 years agodocs: Tweak the actions overview
Matthias Clasen [Sat, 20 Feb 2021 05:17:20 +0000 (00:17 -0500)]
docs: Tweak the actions overview

Fix use of definition lists, and remove some gtk-doc
markup.

5 years agobuilding: Minor tweaks
Matthias Clasen [Sat, 20 Feb 2021 04:33:51 +0000 (23:33 -0500)]
building: Minor tweaks

Remove unsupported anchors from headings.

5 years agovideo: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:33:24 +0000 (23:33 -0500)]
video: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoglarea: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:33:00 +0000 (23:33 -0500)]
glarea: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agodrawingarea: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:32:39 +0000 (23:32 -0500)]
drawingarea: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agotextview: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:32:14 +0000 (23:32 -0500)]
textview: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agopicture: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:31:50 +0000 (23:31 -0500)]
picture: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoscale: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:31:23 +0000 (23:31 -0500)]
scale: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoimage: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:30:59 +0000 (23:30 -0500)]
image: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoseparator: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:30:50 +0000 (23:30 -0500)]
separator: Convert docs

Change link syntax and add an example image.

5 years agocalendar: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 04:30:06 +0000 (23:30 -0500)]
calendar: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoscrollbar: Convert docs
Matthias Clasen [Sat, 20 Feb 2021 00:51:52 +0000 (19:51 -0500)]
scrollbar: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoinfobar: Convert docs
Matthias Clasen [Fri, 19 Feb 2021 21:01:07 +0000 (16:01 -0500)]
infobar: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agodocs: Generate the DevHelp file for our namespaces
Emmanuele Bassi [Fri, 19 Feb 2021 22:09:34 +0000 (22:09 +0000)]
docs: Generate the DevHelp file for our namespaces

5 years agodocs: Update the "Getting Started" page
Emmanuele Bassi [Fri, 19 Feb 2021 22:07:48 +0000 (22:07 +0000)]
docs: Update the "Getting Started" page

Drop the Pandoc stuff, add the gi-docgen links, and remove a stray
docbook element.

5 years agostatusbar: Convert docs
Matthias Clasen [Fri, 19 Feb 2021 21:02:40 +0000 (16:02 -0500)]
statusbar: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoinfobar: Convert docs
Matthias Clasen [Fri, 19 Feb 2021 21:01:07 +0000 (16:01 -0500)]
infobar: Convert docs

Change link syntax, add an example image, generally clean things up.

5 years agoprogressbar: Convert docs
Matthias Clasen [Fri, 19 Feb 2021 20:43:33 +0000 (15:43 -0500)]
progressbar: Convert docs

Change link syntax, add an example image, generally clean
things up.

5 years agolevelbar: Convert docs
Matthias Clasen [Fri, 19 Feb 2021 20:28:51 +0000 (15:28 -0500)]
levelbar: Convert docs

Change link syntax, add an example image, generally
clean things up.

5 years agospinner: Convert docs
Matthias Clasen [Fri, 19 Feb 2021 20:06:16 +0000 (15:06 -0500)]
spinner: Convert docs

Change link syntax and add an example image.

5 years agoaboutdialog: tweak the docs
Matthias Clasen [Fri, 19 Feb 2021 19:50:49 +0000 (14:50 -0500)]
aboutdialog: tweak the docs

Add a short summary.

5 years agolabel: Convert docs
Matthias Clasen [Fri, 19 Feb 2021 19:47:44 +0000 (14:47 -0500)]
label: Convert docs

Change link syntax, add singl-line summaries,
add missing property docs.

5 years agodocs: Bring the widget gallery back
Matthias Clasen [Fri, 19 Feb 2021 18:03:20 +0000 (13:03 -0500)]
docs: Bring the widget gallery back

We have all the images, lets put them to use.

5 years agodocs: Remove the last few remaining '+' from GTK
Emmanuele Bassi [Thu, 18 Feb 2021 18:28:48 +0000 (18:28 +0000)]
docs: Remove the last few remaining '+' from GTK

5 years agodocs: Clean up the first paragraph for various symbols
Emmanuele Bassi [Thu, 18 Feb 2021 18:17:56 +0000 (18:17 +0000)]
docs: Clean up the first paragraph for various symbols

The documentation engine will use the first paragraph as the summary for
a type or constant.

5 years agodocs: Show summary in the namespace index
Emmanuele Bassi [Thu, 18 Feb 2021 17:30:03 +0000 (17:30 +0000)]
docs: Show summary in the namespace index

5 years agodocs: Start porting GtkImage to the new style
Emmanuele Bassi [Thu, 18 Feb 2021 17:02:51 +0000 (17:02 +0000)]
docs: Start porting GtkImage to the new style

5 years agodocs: Port GtkAboutDialog to the new syntax
Emmanuele Bassi [Thu, 18 Feb 2021 13:38:55 +0000 (13:38 +0000)]
docs: Port GtkAboutDialog to the new syntax

We should also clean up the annotations, while we're at it.

5 years agobuild: Quiet down gi-docgen
Emmanuele Bassi [Thu, 18 Feb 2021 13:38:29 +0000 (13:38 +0000)]
build: Quiet down gi-docgen

We are only interested in the warnings and errors.

5 years agodocs: Fix up the style of the X11 content file
Emmanuele Bassi [Wed, 17 Feb 2021 17:52:20 +0000 (17:52 +0000)]
docs: Fix up the style of the X11 content file

5 years agodocs: Move detached sections into their own content file
Emmanuele Bassi [Wed, 17 Feb 2021 17:41:56 +0000 (17:41 +0000)]
docs: Move detached sections into their own content file

5 years agodocs: Split GdkDrag and GdkDrop sections
Emmanuele Bassi [Wed, 17 Feb 2021 14:22:54 +0000 (14:22 +0000)]
docs: Split GdkDrag and GdkDrop sections

This way we have a section for each class.

5 years agodocs: Rename GdkTexture section
Emmanuele Bassi [Wed, 17 Feb 2021 14:22:19 +0000 (14:22 +0000)]
docs: Rename GdkTexture section

The name needs to match the class.

5 years agodocs: Move gdkcairo section to an external file
Emmanuele Bassi [Wed, 17 Feb 2021 14:21:46 +0000 (14:21 +0000)]
docs: Move gdkcairo section to an external file

5 years agodocs: Move the gtkmain section to its own document
Emmanuele Bassi [Sun, 14 Feb 2021 19:36:15 +0000 (19:36 +0000)]
docs: Move the gtkmain section to its own document

The introspection data does not handle unattached sections like gtk-doc
does, so we need to move what was gtkmain into its own Markdown
document.

5 years agodocs: Use new link syntax
Emmanuele Bassi [Sun, 14 Feb 2021 19:00:12 +0000 (19:00 +0000)]
docs: Use new link syntax

5 years agodocs: Begin porting GtkWidget to the new format
Emmanuele Bassi [Sun, 14 Feb 2021 18:00:26 +0000 (18:00 +0000)]
docs: Begin porting GtkWidget to the new format

5 years agodoc: Port GtkConstraint to the new format
Emmanuele Bassi [Sun, 14 Feb 2021 18:00:00 +0000 (18:00 +0000)]
doc: Port GtkConstraint to the new format

5 years agodocs: De-indent GtkRecentInfo.get_applications() return value
Emmanuele Bassi [Sun, 14 Feb 2021 17:59:05 +0000 (17:59 +0000)]
docs: De-indent GtkRecentInfo.get_applications() return value

Otherwise the four spaces will be treated as a pre-formatted block by
Markdown.

5 years agodocs: Start porting GtkConstraintLayout to the new doc format
Emmanuele Bassi [Fri, 12 Feb 2021 00:19:41 +0000 (00:19 +0000)]
docs: Start porting GtkConstraintLayout to the new doc format

Drop the old gtk-doc'isms, and use the gi-docgen links instead.

5 years agodocs: Add metadata preamble to GTK's content files
Emmanuele Bassi [Wed, 10 Feb 2021 14:03:56 +0000 (14:03 +0000)]
docs: Add metadata preamble to GTK's content files

5 years agodocs: Drop gtk-doc files
Emmanuele Bassi [Thu, 18 Feb 2021 12:59:09 +0000 (12:59 +0000)]
docs: Drop gtk-doc files

We don't use gtk-doc to generate our API reference, so we don't need its
files lying around any more.

5 years agoGenerate GTK API reference(s) with gi-docgen
Emmanuele Bassi [Wed, 10 Feb 2021 13:41:53 +0000 (13:41 +0000)]
Generate GTK API reference(s) with gi-docgen

Stop using gtk-doc, and switch to gi-docgen.

The gi-docgen tool generates API references through the introspection
data, which has various benefits:

 - it does not parse C code
 - it does not generate and run C code to introspect types at build time
 - it does not present a different API from the one we're exporting

Additionally, gi-docgen:

 - does not generate DocBook XML in order to generate HTML
 - does not go through xsltproc
 - parses proper Markdown

Which makes it markedly faster than gtk-doc has ever been.

5 years agoAdd gi-docgen as a subproject
Emmanuele Bassi [Wed, 10 Feb 2021 13:38:51 +0000 (13:38 +0000)]
Add gi-docgen as a subproject

While we're developing gi-docgen it's better to have it as part of our
build.

5 years agoci: Update the fedora-docs Docker image
Emmanuele Bassi [Mon, 15 Feb 2021 18:02:53 +0000 (18:02 +0000)]
ci: Update the fedora-docs Docker image

Use the latest base image.

5 years agoci: Update the CI image for docs building
Emmanuele Bassi [Mon, 15 Feb 2021 16:43:10 +0000 (16:43 +0000)]
ci: Update the CI image for docs building

We don't use Pandoc any more, but we need a bunch of Python modules for
gi-docgen.

5 years agoci: Update the reference job
Emmanuele Bassi [Mon, 15 Feb 2021 00:56:35 +0000 (00:56 +0000)]
ci: Update the reference job

5 years agoRename base version argument in run-docker.sh
Emmanuele Bassi [Mon, 15 Feb 2021 16:42:07 +0000 (16:42 +0000)]
Rename base version argument in run-docker.sh

The `--base-version` argument trips up everyone. Might as well rename it
to `--version`.

5 years agoMerge branch 'fix-menubutton-tooltips' into 'master'
Matthias Clasen [Thu, 11 Mar 2021 14:25:53 +0000 (14:25 +0000)]
Merge branch 'fix-menubutton-tooltips' into 'master'

Limit tooltip queries to the same native

Closes #3719

See merge request GNOME/gtk!3283

5 years agoLimit tooltip queries to the same native
Matthias Clasen [Thu, 11 Mar 2021 13:56:05 +0000 (08:56 -0500)]
Limit tooltip queries to the same native

Without this, the menubuttons tooltip pops up
when hovering the popover, which is suprising
and unintended.

Fixes: #3719
5 years agoMerge branch 'gdk-win32-use-window-from-point-for-master' into 'master'
Matthias Clasen [Thu, 11 Mar 2021 01:09:39 +0000 (01:09 +0000)]
Merge branch 'gdk-win32-use-window-from-point-for-master' into 'master'

GdkWin32: Fix mouse events in presence of transparent windows on the desktop

Closes #370, #417, and gimp#1082

See merge request GNOME/gtk!2800

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 9 Mar 2021 23:59:05 +0000 (23:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

inspector: Fix surface transform regression

See merge request GNOME/gtk!3280

5 years agoinspector: Fix surface transform regression
Matthias Clasen [Tue, 9 Mar 2021 22:42:59 +0000 (17:42 -0500)]
inspector: Fix surface transform regression

Ever since we added surface-to-widget transforms,
the autofading of the fps overlay did not work anymore,
since it was given the transient transform node, most
of the time.

Fix this by passing both the root of the node tree and
the node for the toplevel widget to prepare_render, and
hande the widget node to the overlays. Update the
affected overlays that need to have their positioning
adjusted.

5 years agoUpdate Serbian translation
Мирослав Николић [Tue, 9 Mar 2021 21:23:01 +0000 (21:23 +0000)]
Update Serbian translation

(cherry picked from commit f33a2febc7df6ec9c7721361f94121c2db079057)

5 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Tue, 9 Mar 2021 19:11:09 +0000 (19:11 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

Wip/otte/for master

See merge request GNOME/gtk!3279

5 years agowayland: Fix memleaks when rendering with Cairo
Benjamin Otte [Tue, 9 Mar 2021 18:52:59 +0000 (19:52 +0100)]
wayland: Fix memleaks when rendering with Cairo

We were leaking buffers. This wasn't caught by valgrind and friends
because it was shared memory (with the compositor), but top(1) would
instantly see memory consumption of the app and the shell go through the
roof.

5 years agowayland: Don't call _gdk_surface_update_size() all the time
Benjamin Otte [Tue, 9 Mar 2021 18:50:56 +0000 (19:50 +0100)]
wayland: Don't call _gdk_surface_update_size() all the time

We were calling _gdk_surface_update_size() every frame, even if the
window size didn't change. This would cause us to discard all cached
buffers and redraw the whole screen.

This was BAD.

5 years agoMerge branch 'ngl-rect-borders' into 'master'
Matthias Clasen [Tue, 9 Mar 2021 17:56:57 +0000 (17:56 +0000)]
Merge branch 'ngl-rect-borders' into 'master'

Speed up border rendering

See merge request GNOME/gtk!3278

5 years agonodeparser: Print debug message before child
Matthias Clasen [Tue, 9 Mar 2021 05:43:47 +0000 (00:43 -0500)]
nodeparser: Print debug message before child

This puts the message up top, where it can be seen,
and not at the other end of an endless tree of children.

Update tests to match.

5 years agongl: Render simple borders simply
Matthias Clasen [Tue, 9 Mar 2021 02:37:28 +0000 (21:37 -0500)]
ngl: Render simple borders simply

Use 4 color commands for uniform, rectilinear
borders. Most of our borders are rounded with
Adwaita, but there are still some of these.

5 years agogsk: Add gsk_border_node_get_uniform_color
Matthias Clasen [Tue, 9 Mar 2021 02:36:41 +0000 (21:36 -0500)]
gsk: Add gsk_border_node_get_uniform_color

Maintain this bit of information separately,
it will be useful in the next commit.

5 years agovulkan: Improve rounded rect clipping
Benjamin Otte [Sat, 6 Mar 2021 19:44:38 +0000 (20:44 +0100)]
vulkan: Improve rounded rect clipping

Handle the case where the inner rounded rect is fully contained
within the outer rounded rect.